<template>
    <div>
        <el-table
                :data="tableData"
                style="width: 100%">
            <el-table-column
                    prop="name"
                    label="昵称"
                    width="180">
            </el-table-column>
            <el-table-column

                    label="头像"
                    width="180">
                <template slot-scope="scope">
                    <img :src="scope.row.image" alt="" style="width: 50px;height: 50px">
                </template>
            </el-table-column>
            <el-table-column
                    prop="city"
                    label="地址">
            </el-table-column>

            <el-table-column
                    prop="created_at"
                    label="时间">
            </el-table-column>
        </el-table>
    </div>

</template>

<script>
    export default {
        created(){
            axios.post('/api/getuserlist').then(rew=>{
                this.tableData =rew.data.data
            })
        },
        data() {
            return {
                tableData: []
            }
        }
    }
</script>

<style scoped>

</style>